<template>
  <div class="home-wrap">
    <sidebar ref="sidebar"></sidebar>
    <div class="home-right-wrap" ref="homeRight">
      <header-vue></header-vue>

      <router-view class="main-wrap"/>
    </div>
  </div>
</template>

<script>
  import {mapState} from "vuex";

  export default {
    name: "home",
    data() {
      return {}
    },
    computed: {
      ...mapState(['userInfo']),
    },
    mounted() {

    },
    methods: {}
  }
</script>

<style lang="less" scoped>
  .home-wrap {
    width: 100%;
    display: flex;

    .home-right-wrap {
      flex: 1;
    }

    .main-wrap {
      margin: 20px;
      box-sizing: border-box;
    }
  }
</style>
